package cn.lichenfei.fxui.controls;

import cn.lichenfei.fxui.common.FxUtil;
import cn.lichenfei.fxui.controls.skin.CFPaginationSkin;
import javafx.scene.control.Control;

public class CFPagination extends Control {

    private static final String STYLE_SHEET = FxUtil.getResource("/css/cf-pagination.css");
    private static final String STYLE_CLASS = "cf-pagination";

    public CFPagination() {
        initialize();
    }

    private void initialize() {
        setMaxSize(USE_PREF_SIZE, USE_PREF_SIZE);
        getStyleClass().add(STYLE_CLASS);
    }

    @Override
    protected CFPaginationSkin createDefaultSkin() {
        return new CFPaginationSkin(this);
    }

    @Override
    public String getUserAgentStylesheet() {
        return STYLE_SHEET;
    }

}
